<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body> 
  	<div align="left">
  	<form action="${pageContext.request.contextPath}/url/getQuery" method="post">
   	<div style="float:left">测试链接<input type="text" value="" name=ttestlink></div>
   <!-- 	<div style="float:left">域名组<input id="testname " type="text"></div> -->
   	<div style="float:left"><input type="submit" value="搜索"></div>
   	</form>
   	</div><br>
 </body>
 
 <body>
  <div style="clear: both;">
  	<table id="td" border="1" width="100%" align="center">
  		<tr>
  			<th width="50"><input type="checkbox"></th>
  			<th>测试链接</th>
  			<th>测试名称</th>
  			<th>域名组</th>
  			<th>操作<a href="${pageContext.request.contextPath}/url/toAdd"><input type="button" value="添加"></input></a></th>
  		</tr>
  		<c:forEach items="${allLink}" var="link">
  			<tr>
  			<td><input type="checkbox" name="id" value="${link.tid}"></td>
  			<td>${link.ttestlink }</td>
  			<td>${link.ttestname }</td>
  			<td>${link.tdomaingroup }</td>	
  			<td>
  				<a href="${pageContext.request.contextPath}/url/findLinkById?tid=${link.tid}">修改</a>
  				<a href="${pageContext.request.contextPath}/url/deleteById?tid=${link.tid}">删除</a>
  			</td>
  			</tr>	
  		</c:forEach>
  		
  	</table>
  	</div>
  	
  	<script type="text/javascript">
		
	</script>
 </body> 	
</html>